import { createWebHistory, createRouter } from 'vue-router'
import { beforeEachDynamic } from './dynamic'
import routes from './routes'

const router = createRouter({
  history: createWebHistory(),
  routes,
})

router.beforeEach(beforeEachDynamic(router))

export default router
